package com.qf.mapper;

/*
 *  @author Administrator
 *  @version V1.0
 *  @Project smartdeviceplatgorm
 *  @Package com.qf.mapper
 *  @Description
 *  @Date2022/3/22 0022 16:28
 */

import com.qf.bean.SysDevice;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysDeviceMapper {
    void addSysDevice(SysDevice sysDevice);

//    @Select("select    *    from sys_device where categy_id=#{id}")
    List<SysDevice> findBySelf(Integer id);

    @Select("select * from sys_device where device_id=#{deviceId};")
    SysDevice findById(String deviceId);

    int updateDeviceById(SysDevice sysDevice);
}
